import request from '@/utils/request'

// 查询接收人信息列表
export function listWarnreceiver(query) {
  return request({
    url: '/ruoyi-aimp/warnreceiver/list',
    method: 'get',
    params: query
  })
}

// 查询接收人信息详细
export function getWarnreceiver(warnreceiverId) {
  return request({
    url: '/ruoyi-aimp/warnreceiver/' + warnreceiverId,
    method: 'get'
  })
}

// 新增接收人信息
export function addWarnreceiver(data) {
  return request({
    url: '/ruoyi-aimp/warnreceiver',
    method: 'post',
    data: data
  })
}

// 修改接收人信息
export function updateWarnreceiver(data) {
  return request({
    url: '/ruoyi-aimp/warnreceiver',
    method: 'put',
    data: data
  })
}

// 删除接收人信息
export function delWarnreceiver(warnreceiverId) {
  return request({
    url: '/ruoyi-aimp/warnreceiver/' + warnreceiverId,
    method: 'delete'
  })
}
